@layout("/common/_container.html"){

<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal" id="userInfoForm">

			<input type="hidden" id="id" value="">
			<div class="row" >
				<div class="col-sm-6 b-r">
					<#avatar name="头像" id="avatarUrl" />
				</div>
			</div>
			<div class="row ">
				<div class="col-sm-6 b-r">
					<#input id="account" name="账户"   placeholder="请输入账户"  underline="false"   must="must"/>
				</div>
				<div class="col-sm-6">
					<#input id="name" name="姓名"   placeholder="请输入姓名"  underline="false"   must="must"/>
				</div>
			</div>
			<div class="row ">
				<div class="col-sm-6 b-r">
					<#select id="roleid" name="角色"    underline="false"   must="must">
						<option value="">请选择角色</option>
						@for(item in roleList){
							<option value="${item.id}">${item.name}</option>
						@}
					</#select>
				</div>
				<div class="col-sm-6" >
					<#input name="状态" type="checkbox" class="js-switch " id="status"    underline="false"   must="must" checked="checked" />
				</div>
		</div>
		<div class="row ">
				<div class="col-sm-6 b-r">
					<#input id="password" name="密码"    placeholder="请输入密码" underline="false"   type="password" must="must"/>
				</div>
				<div class="col-sm-6">
					<#input id="rePassword" name="确认密码"  placeholder="请输入密码" type="password"    underline="false"   must="must"/>
				</div>
		</div>
		<div class="row ">
				<div class="col-sm-6 b-r">
					<#input id="email" name="邮箱" type="email"   placeholder="请输入邮箱"  underline="false"   />
				</div>
				<div class="col-sm-6">
					<#input id="phone" name="电话"   placeholder="请输入电话"  underline="false"   />
				</div>
		</div>
		<div class="row ">
				<div class="col-sm-6">
					<#select id="sex" name="性别"  underline="false" >
						<option value="0">请选择性别</option>
						<option value="1">男</option>
						<option value="2">女</option>
					</#select>
				</div>
	</div>
	<div class="row ">
				<div class="col-sm-6 b-r">
					<#input id="birthday" name="出生日期"   placeholder="yyyy-MM-dd"  underline="false"    />
				</div>
			</div>

			<div class="row btn-group-m-t">
				<div class="col-sm-12 tr">
					<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="UserInfoDlg.addSubmit()"/>
					<#button btnCss="danger btnGray" name="取消" id="cancel" icon="fa-eraser" clickFun="UserInfoDlg.close()"/>
				</div>
			</div>
		</div>

	</div>
</div>
<script>
//执行一个laydate实例
	laydate.render({
  	elem: '#birthday' //指定元素
  	,theme: '#393D49'
	});
</script>
<script src="${ctxPath}/static/modular/system/user/user_info.js"></script>
@}
